billing-ux

(0 reviews)

TMF 635 GET - Usage

This operation lists or retrieves usage records, including usage characteristics and rated product usage information.

URL

https://[localhost]:[port]/billing-ux/v1/{businessId}/usage

URL Params

nametypedescriptionrequired
businessIdstring2 letter ISO 3166 country code (TT, BB, JM, PA, etc.) identifying the business unit.Y

Headers

nametypedescriptionrequired
X-Correlation-IDstringIdentifier that correlates HTTP request between a client and server.
Any identification model (UUDI, checksum, etc.) can be used, as long as it is a unique value to differentiate a transaction.
Y
client_idstringThe client_id identifying the channel. Minimum characters: 5Y
client_secretstringPassword associated with the client_id. Minimum characters: 5Y

Query Param

nametypedescriptionrequired
usageCharacteristic[0].namestringName of the usage characteristic : bancanY*
usageCharacteristic[0].valuestringValue of the usage characteristic : 123445Y*
usageCharacteristic[1].namestringName of the usage characteristic : MSISDNY*
usageCharacteristic[1].valuestringValue of the usage characteristic : 89178Y*
usageCharacteristic[2].namestringName of the usage characteristic : invoiceNumberY*
usageCharacteristic[2].valuestringValue of the usage characteristic : 57821Y*
usageCharacteristic[3].namestringName of the usage characteristic : paymentTypeY*
usageCharacteristic[3].valuestringValue of the usage characteristic : postpaid/prepaidY*
usageDate.gtestringUsage details after this date : 2026-09-10T14:32:07:000ZN*
usageDate.ltestringUsage details before this date : 2026-09-10T14:32:07:000ZN*
usageTypestringUsage type of event value : VoiceN
limitintegerThe number of items to return per page : 1N*
offsetintegerThe number of items to skip before starting to collect the result set: 10N*

[GET] Retrieve Usage Details By UsageType Response

[
  {
    "date": "2026-09-10T14:32:07Z",
    "type": "voice",
    "description": "Postpaid billed usage record",
    "usageCharacteristic": [
      {
        "name": "msisdn",
        "value": "9876543210",
        "valueType": "string"
      },
      {
        "name": "bancan",
        "value": "BAN-4455667788",
        "valueType": "string"
      },
      {
        "name": "direction",
        "value": "outgoing",
        "valueType": "string"
      },
      {
        "name": "duration",
        "value": 185,
        "valueType": "integer"
      },
      {
        "name": "code",
        "value": "OUT_OF_PLAN",
        "valueType": "string"
      },
      {
        "name": "roamingOriginLocation",
        "value": "Puerto Rico",
        "valueType": "string"
      },
      {
        "name": "unit",
        "value": "SECONDS",
        "valueType": "string"
      },
      {
        "name": "destinationLocation",
        "value": "Dominican Republic",
        "valueType": "string"
      },
      {
        "name": "destinationNumber",
        "value": "18095551234",
        "valueType": "string"
      },
      {
        "name": "volumeUsed",
        "value": 185,
        "valueType": "integer"
      }
    ],
    "ratedProductUsage": [
      {
        "taxIncludedRatingAmount": 0.35,
        "@type": "RatedProductUsage"
      }
    ],
    "@type": "Usage"
  }
]

Response Data Model:

Each of the response parameters is detailed.

nametypedescriptionrequired
datestringDate and time when the usage event occurred : 2026-09-10T14:32:07ZN
typestringUsage type such as voice, data, or sms : voiceN
descriptionstringDescription of the usage event : Postpaid billed usage recordN
usageCharacteristic.namestringName of the characteristic : bancanN
usageCharacteristic.valuestringThe value of the characteristic : 123445N
usageCharacteristic.valueTypestringThe type value of the characteristic : stringN
ratedProductUsage.taxIncludedRatingAmountstringRated product usage information of Tax included rating amount : 0.35N
ratedProductUsage.@typearrayUsage type such as voice, data, or sms : RatedProductUsageN
@typestringType of the usage resource : UsageN

Possible response error

In this section all the possible data structures received by the client are defined and that must be considered as unsatisfactory when responding to the method.

[ 400 ]

Bad Request - the request could not be understood by the server due to malformed syntax. The client SHOULD NOT repeat the request without modifications.

{
  "errors" : [{
      "code" : 400,
      "message" : "The request is invalid or not properly formed.",
      "description" : "Malformed request syntax, invalid request message framing, or deceptive request routing."
    }]
}
[ 401 ]

Unauthorized - The request has not been applied because it lacks valid authentication credentials for the target resource.

{
  "errors" : [{
      "code" : 401,
      "message" : "The user could not be authenticated for this request.",
      "description" : "The request has not been applied because it lacks valid authentication credentials for the target resource."
    }]
}
[ 404 ]

Not Found - server has not found a resource with that URI. This may be temporary and permanent condition. This status code is commonly used when the server does not wish to reveal exactly why the request has been refused, or when no other response is applicable.

{
  "errors" : [{
      "code" : 404,
      "message" : "The server could not find the requested resource.",
      "description" : "The requested operation failed because a resource associated with the request could not be found."
    }]
}
[ 405 ]

Method Not Allowed - HTTP method not allowed for this resource. The method specified in the Request-Line is not allowed for the resource identified by the Request-URI.

{
    "errors": [{
            "code": 405,
             "message": "APIKIT:METHOD_NOT_ALLOWED",
             "description": "HTTP Method POST not allowed for : /{businessId}/usage"
        }]
}
[ 500 ]

Internal Server Error - server encountered an error processing request. This should not happen normally, but it is a generic error message, given when no more specific message is suitable.

{
  "errors" : [{
      "code" : 500,
      "message" : "Internal Server Error",
      "description": "The request failed due to an internal error."
    }]
}
[ 501 ]

Not implemented - indicates that the server does not support the functionality required to fulfill the request. This is the appropriate response when the server does not recognize the request method and is not capable of supporting it for any resource.

{
  "errors" : [{
      "code" : 501,
      "message" : "Not implemented",
      "description" : "Operation GET /usage for Business Id: PR not implemented"
    }]
  }

Reviews